﻿@page "/"
@namespace BlazorBlogs.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Blazor-Blogs</title>
    <base href="~/" />
    <meta name="revised" content="Saturday, November 21st, 2020, 5:00 am" />
    <link href="//cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
    <link href="//cdn.quilljs.com/1.3.6/quill.bubble.css" rel="stylesheet">
    <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
    <link rel="stylesheet" href="_content/Radzen.Blazor/css/default.css">
    <link href="_content/Blazored.Toast/blazored-toast.css" rel="stylesheet" />
    <link href="css/site.css" rel="stylesheet" />
</head>
<body>
    <app>
        <component type="typeof(BlazorBlogsLibrary.App)" render-mode="ServerPrerendered" />
    </app>

    <div id="blazor-error-ui">
        <environment include="Staging,Production">
            An error has occurred. This application may no longer respond until reloaded.
        </environment>
        <environment include="Development">
            An unhandled exception has occurred. See browser dev tools for details.
        </environment>
        <a href="" class="reload">Reload</a>
        <a class="dismiss">🗙</a>
    </div>

    <script src="_framework/blazor.server.js"></script>
    <script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
    <script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
    <script src="_content/Blazored.TextEditor/quill-blot-formatter.min.js"></script>
    <script src="_content/Blazored.TextEditor/Blazored-BlazorQuill.js"></script>
    <script async src='https://www.google-analytics.com/analytics.js'></script>

    <script>
        (function () {
            window.gaFunctions = {
                gaTracking: function (gaTrackingID) {
                    (ga.q = ga.q || []).push(arguments);
                    ga.l = +new Date;
                    ga('create', gaTrackingID, 'auto');
                    ga('send', 'pageview');
                }
            };
            window.DisqusFunctions = {
                createDisqus: function (disqusThreadElement, disqusSrc) {
                    var dsq = document.createElement('script');
                    dsq.type = 'text/javascript';
                    dsq.async = true;
                    dsq.src = disqusSrc;
                    dsq.disqus_container_id = 'disqus_thread';
                    disqusThreadElement.appendChild(dsq);
                },
                resetDisqus: function (newIdentifier, newUrl, newTitle) {
                    try {
                        DISQUS.reset({
                            reload: true,
                            config: function () {
                                this.page.identifier = newIdentifier;
                                this.page.url = newUrl;
                                this.page.title = newTitle;
                            }
                        });
                    }
                    catch (err) {
                        // do nothing
                    }
                }
            };
        })();
    </script>
</body>
</html>